home *** CD-ROM | disk | FTP | other *** search
- LOCK
-
- Sets the write-protect status of a device.
-
- Format
-
- LOCK <drive> [ON | OFF] [<passkey>]
-
- Template
-
- DRIVE/A,ON/S,OFF/S,PASSKEY
-
- Location
-
- C:
-
- LOCK sets or unsets the write-protect status of a device or partition. The
- LOCK remains on until the system is rebooted or until the LOCK is turned off
- with the LOCK OFF command.
-
- An optional passkey can be specified. If the passkey is used to lock a hard
- disk partition, the same passkey must be specified to unlock the partition.
- The passkey can be any number of characters long.
-
- Example:
-
- 1> LOCK Work: ON SecretCode
-
- The Work partition is locked. You can read the contents of Work with commands
- such as DIR, LIST, or MORE but you cannot alter the contents of the
- partition. If you try to edit the contents of a file on Work, a requester
- indicates that Work is write-protected. For example, if you try to create a
- new directory by entering the following:
-
- 1> MAKEDIR WORK:Test
-
- the following message appears:
-
- Can't create directory Work:Test
- Disk is write-protected
-
- To unlock the partition, enter:
-
- 1> LOCK Work: OFF SecretCode
-
- Locking a device is only good for the duration of the current session.
- Resetting or turning off the Amiga cancels the lock.
-